package com.itljm.cxrMarket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.Categories;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoriesService extends IService<Categories> {
    List<Categories> selectCategoriesPage(Page<Categories> page, Wrapper<Categories> entityWrapper);

    // 查询所有
    List<Categories> selectAll();

    // 新增或修改
    boolean saveCategories(Categories entity);

    // 根据id查询
    Categories selectCategoriesById(Integer id);

    // 根据name查询id
    Integer selectCategoriesIdByName(String name);
}
